
		<div style="text-align:center; "><h1>Message Center</h1></div>
<!--		<div style="margin: 10px; ">
			<div style="font-size: 14px; font-weight:bold; border-bottom: 1px solid gray;"><h3>Alerts</h3></div>
			<div style="margin-left: 10px; "><span class="italic_1">None</span></div>
		</div> -->
		<div style="margin: 10px; ">
	<?php
		$memo_sql = sprintf("SELECT * FROM `t_memos` WHERE `expire_date` >= %s AND `display` = 1",date("Ymd"));
		$memo_result = mysql_query($memo_sql);
		$memo_count = mysql_num_rows($memo_result);
	?>
			<div style="font-size: 14px; font-weight:bold; border-bottom: 1px solid gray;"><h3>Memos</h3></div>
	<?php	if($memo_count == 0) { ?>
			<div style="margin-left: 10px; "><span class="italic_1">None</span></div>
	<?php 	} else { 
				while($memo_data = mysql_fetch_assoc($memo_result)) { ?>
			<div style="margin-left: 10px; font-weight:bold;"><a href="?memo=<?= $memo_data['memo_id'] ?>"><?= $memo_data['subject'] ?></a></div>
	<?php		}
			} ?>
		</div>
		<div style="margin: 10px; ">
	<?php
		$message_sql = sprintf("SELECT * FROM `t_messages` WHERE `to_id` = %s",$_SESSION['driver_id']);
		$message_result = mysql_query($message_sql);
		$message_count = mysql_num_rows($message_result);
	?>
			<div style="font-size: 14px; font-weight:bold; border-bottom: 1px solid gray;"><h3>Messages</h3></div>
	<?php	if($message_count == 0) { ?>
			<div style="margin-left: 10px; "><span class="italic_1">None</span></div>
	<?php 	} else { 
				while($message_data = mysql_fetch_assoc($message_result)) { ?>
			<div style="margin-left: 10px; font-weight:bold;"><a href="?msg=<?= $message_data['message_id'] ?>"><?= $message_data['subject'] ?></a></div>
	<?php		}
			} ?>
		</div>